﻿
namespace Studio77.PopBall.Utils
{
    public class WPResultCode
    {
        public const string RESULT_FAULT = "-1";  //失败
        public const string RESTLT_OK = "0";      // 成功

        /// <summary>
        /// 文件操作错误代码
        /// </summary>
        public const string RESULT_STORE_FOR_APP_ERR = "1001";               //存储区的组配额设置为零 - 或 -
                                                                             //存储区已被移除但不能重新创建，因为目录或文件正在由另一个进程使用
                                                                             //- 或 - 独立存储被禁用

        public const string RESULT_ARGUMENT_EXCEPTION_ERR = "1002";          //path 的格式不正确 
        public const string RESULT_ARGUMENT_NULL_EXCEPTION = "1003";         //path 为 null
        public const string RESULT_DIRECTORY_NOT_FOUND_EXCEPTION = "1004";   //path 中的目录不存在
        public const string RESULT_OBJECT_DISPOSED_EXCEPTION = "1005";       //独立存储区已被释放
        public const string RESULT_FILE_EXIST = "1006";                      //文件已存在
        public const string RESULT_FILE_NOT_EXIST = "1007";                  //文件不存在
        public const string RESULT_DIR_EXIST = "1008";                       //目录已存在
        public const string RESULT_DIR_NOT_EXIST = "1009";                   //目录不存在
        public const string RESULT_FILE_OPEN_FAULT = "1010";                 //文件打开失败
        public const string RESULT_FILE_OPEN_WRITE_ERR = "1011";             //写入尝试超过了 IsolatedStorageFileStream 对象的配额
        public const string RESULT_FILE_OPEN_READ_ERR = "1012";              //文件读取失败
        public const string RESULT_FILE_OR_DIR_NAME_NULL = "1013";           //文件名字是空
        public const string RESULT_DISK_SPACE_NOT_ENOUGH = "1014";           //空间不足
        public const string RESULT_IN_OBJECT_IS_NULL = "1015";               //传入的对象是空
        public const string RESULT_FILE_SEEK_LESS_ZERO = "1016";             //偏移位是小于0

        /// <summary>
        /// http操作错误代码
        /// </summary>
        public const string RESULT_HEADER_KEY_OR_VALUE_NULL = "1101";        //请求设置key或者value是空的



    }
}
